package com.itheima.thread.communication.demo03;

public class BoxDemo {

    public static void main(String[] args) {

        Box box = new Box();
        ProducerThread producerThread = new ProducerThread(box);
        CustomerThread customerThread = new CustomerThread(box);

        Thread t1 = new Thread(producerThread);
        Thread t2 = new Thread(customerThread);

        t1.start();
        t2.start();

    }
}
